<?php
		require_once "includes/config.php";		
		if(isset($_REQUEST['id'])) {
			$catId=$_REQUEST['id'];
		}
		
			$id = $catId;
			if($id!="") {			
					$qry="SELECT * FROM tbl_category where parent_id='$id'";
					$res=mysql_query($qry);
					if(mysql_num_rows($res) > 0) {			
											
						?>
						<label for="pro_subcategory">Sub Category</label>
						<select name="pro_subcategory" id="pro_subcategory" onChange="getSubSubCat(this.value,'sub-sub-category');">
							<option value="">..Select subcategory..</option>
							<?php
							while($row = mysql_fetch_assoc($res))
							{				
								echo "<option value='".$row['category_id']."'>".$row['category_name']."</option>";					
							}
							?>
						</select><span id="loader-div1"></span><br>						
					<?php
					} 							
				}				
						
			?>
			


